package com.thinkgem.jeesite.modules.KDniao.entity.KDniaorequestMe;

/**
 * 物流状态信息
 * @author acer
 *
 */
public class LogisticsStateentity {
    //0-无轨迹，1-已揽收，2-在途中 201-到达派件城市，3-签收,4-问题件
    private static final short no_trajectory = 0;//无轨迹
    private static final short have_received = 1;//已揽收
    private static final short On_the_way = 2;//在途中
    private static final short Arrival_city = 201;//到达派件城市
    private static final short Sign = 3;//签收
    private static final short Problem_piece = 4;//问题件

    public static String getState(String state) {

        if (state == null || "".equals(state))
            return null;
        short sh = 2585;
        try {
             sh = new Short(state);

        } catch (Exception e) {
            return state;
        }
        if (no_trajectory == sh)
            return "无轨迹";
        if (sh == have_received)
            return "已揽收";
        if(sh==On_the_way)
            return "在途中";
        if (sh == Arrival_city)
            return "到达派件城市";
        if (sh == Sign)
            return "签收";
        if (sh == Problem_piece)
            return "问题件";
        return "无状态";
    }
}
